package com.gec.zhs.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 入库通知单（入库订单）
 * @TableName wmsinboundordertbl
 */
@TableName(value ="wmsinboundordertbl")
@Data
public class Wmsinboundordertbl implements Serializable {
    /**
     * 入库通知单号
     */
    @TableId
    private String id;

    /**
     * 相关单据号
     */
    private String externalno;

    /**
     * 相关单据类型
     */
    private String externaltype;

    /**
     * 入库通知单状态(SYS_INSTCINFORMSTATUS)
     */
    private Integer status;

    /**
     * 入库类型(SYS_INSTCTYPE)
     */
    private String ordertype;

    /**
     * 商品类别
     */
    private String goodstype;

    /**
     * 采购单号
     */
    private String purchaseno;

    /**
     * 仓库编号
     */
    private String stockid;

    /**
     * 货主编号(固定值CQM)
     */
    private String ownerid;

    /**
     * 承运人编号
     */
    private String shipperid;

    /**
     * 供应商编号
     */
    private String supplierid;

    /**
     * 预定入库时间
     */
    private Date scheduledinboundtime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 有效标志
     */
    private Integer enable;

    /**
     * 承运方式
     */
    private String transfertype;

    /**
     * 是否入保税库(0:否,1:是)
     */
    private Integer inbondedarea;

    /**
     * 销退箱数
     */
    private Integer returnboxnum;

    /**
     * 创建时间
     */
    private Date createtime;

    /**
     * 创建人ID
     */
    private String createuserid;

    /**
     * 创建人
     */
    private String createusername;

    /**
     * 最后更新时间
     */
    private Date updatetime;

    /**
     * 最后更新人ID
     */
    private String updateuserid;

    /**
     * 最后更新人
     */
    private String updateusername;

    /**
     * 所属部门
     */
    private String orgid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Wmsinboundordertbl other = (Wmsinboundordertbl) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getExternalno() == null ? other.getExternalno() == null : this.getExternalno().equals(other.getExternalno()))
            && (this.getExternaltype() == null ? other.getExternaltype() == null : this.getExternaltype().equals(other.getExternaltype()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getOrdertype() == null ? other.getOrdertype() == null : this.getOrdertype().equals(other.getOrdertype()))
            && (this.getGoodstype() == null ? other.getGoodstype() == null : this.getGoodstype().equals(other.getGoodstype()))
            && (this.getPurchaseno() == null ? other.getPurchaseno() == null : this.getPurchaseno().equals(other.getPurchaseno()))
            && (this.getStockid() == null ? other.getStockid() == null : this.getStockid().equals(other.getStockid()))
            && (this.getOwnerid() == null ? other.getOwnerid() == null : this.getOwnerid().equals(other.getOwnerid()))
            && (this.getShipperid() == null ? other.getShipperid() == null : this.getShipperid().equals(other.getShipperid()))
            && (this.getSupplierid() == null ? other.getSupplierid() == null : this.getSupplierid().equals(other.getSupplierid()))
            && (this.getScheduledinboundtime() == null ? other.getScheduledinboundtime() == null : this.getScheduledinboundtime().equals(other.getScheduledinboundtime()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getEnable() == null ? other.getEnable() == null : this.getEnable().equals(other.getEnable()))
            && (this.getTransfertype() == null ? other.getTransfertype() == null : this.getTransfertype().equals(other.getTransfertype()))
            && (this.getInbondedarea() == null ? other.getInbondedarea() == null : this.getInbondedarea().equals(other.getInbondedarea()))
            && (this.getReturnboxnum() == null ? other.getReturnboxnum() == null : this.getReturnboxnum().equals(other.getReturnboxnum()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getCreateuserid() == null ? other.getCreateuserid() == null : this.getCreateuserid().equals(other.getCreateuserid()))
            && (this.getCreateusername() == null ? other.getCreateusername() == null : this.getCreateusername().equals(other.getCreateusername()))
            && (this.getUpdatetime() == null ? other.getUpdatetime() == null : this.getUpdatetime().equals(other.getUpdatetime()))
            && (this.getUpdateuserid() == null ? other.getUpdateuserid() == null : this.getUpdateuserid().equals(other.getUpdateuserid()))
            && (this.getUpdateusername() == null ? other.getUpdateusername() == null : this.getUpdateusername().equals(other.getUpdateusername()))
            && (this.getOrgid() == null ? other.getOrgid() == null : this.getOrgid().equals(other.getOrgid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getExternalno() == null) ? 0 : getExternalno().hashCode());
        result = prime * result + ((getExternaltype() == null) ? 0 : getExternaltype().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getOrdertype() == null) ? 0 : getOrdertype().hashCode());
        result = prime * result + ((getGoodstype() == null) ? 0 : getGoodstype().hashCode());
        result = prime * result + ((getPurchaseno() == null) ? 0 : getPurchaseno().hashCode());
        result = prime * result + ((getStockid() == null) ? 0 : getStockid().hashCode());
        result = prime * result + ((getOwnerid() == null) ? 0 : getOwnerid().hashCode());
        result = prime * result + ((getShipperid() == null) ? 0 : getShipperid().hashCode());
        result = prime * result + ((getSupplierid() == null) ? 0 : getSupplierid().hashCode());
        result = prime * result + ((getScheduledinboundtime() == null) ? 0 : getScheduledinboundtime().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getEnable() == null) ? 0 : getEnable().hashCode());
        result = prime * result + ((getTransfertype() == null) ? 0 : getTransfertype().hashCode());
        result = prime * result + ((getInbondedarea() == null) ? 0 : getInbondedarea().hashCode());
        result = prime * result + ((getReturnboxnum() == null) ? 0 : getReturnboxnum().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getCreateuserid() == null) ? 0 : getCreateuserid().hashCode());
        result = prime * result + ((getCreateusername() == null) ? 0 : getCreateusername().hashCode());
        result = prime * result + ((getUpdatetime() == null) ? 0 : getUpdatetime().hashCode());
        result = prime * result + ((getUpdateuserid() == null) ? 0 : getUpdateuserid().hashCode());
        result = prime * result + ((getUpdateusername() == null) ? 0 : getUpdateusername().hashCode());
        result = prime * result + ((getOrgid() == null) ? 0 : getOrgid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", externalno=").append(externalno);
        sb.append(", externaltype=").append(externaltype);
        sb.append(", status=").append(status);
        sb.append(", ordertype=").append(ordertype);
        sb.append(", goodstype=").append(goodstype);
        sb.append(", purchaseno=").append(purchaseno);
        sb.append(", stockid=").append(stockid);
        sb.append(", ownerid=").append(ownerid);
        sb.append(", shipperid=").append(shipperid);
        sb.append(", supplierid=").append(supplierid);
        sb.append(", scheduledinboundtime=").append(scheduledinboundtime);
        sb.append(", remark=").append(remark);
        sb.append(", enable=").append(enable);
        sb.append(", transfertype=").append(transfertype);
        sb.append(", inbondedarea=").append(inbondedarea);
        sb.append(", returnboxnum=").append(returnboxnum);
        sb.append(", createtime=").append(createtime);
        sb.append(", createuserid=").append(createuserid);
        sb.append(", createusername=").append(createusername);
        sb.append(", updatetime=").append(updatetime);
        sb.append(", updateuserid=").append(updateuserid);
        sb.append(", updateusername=").append(updateusername);
        sb.append(", orgid=").append(orgid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}